<a href="<?php echo site_url('admin/berita/tambah') ?>" class="btn btn-info btn-rounded"><i class="iconfa-plus"></i> Tambah Berita Akademik</a>
<br/>
<br/>

<h4 class="widgettitle nomargin shadowed">Data Berita Akademik</h4>
<table class="table table-bordered" id="dyntable">
    <colgroup>
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
    </colgroup>
    <thead>
        <tr>
            <th class="head0">Nomor</th>
            <th class="head1">Tanggal</th>
            <th class="head0">Judul Berita</th>
            <th class="head1" width="40%">Isi Utama</th>
            <th class="head0">Option</th>
        </tr>
    </thead>
    <tbody>
        <?php
		$nomor = 0;
        foreach ($rslt_data_berita->result() as $value_data_kelas)
        {
			$nomor++;
            echo '<tr>';
            echo '<td>' . $nomor . '</td>';
            echo '<td>' . tglLengkap($value_data_kelas->tanggal) . '</td>';
            echo '<td>' . $value_data_kelas->judul . '</td>';
            echo '<td>' . ellipsize($value_data_kelas->berita_isi, 60) . '</td>';
			echo '<td><center>';
			echo '<a href="'.base_url('admin/berita/edit/'.$value_data_kelas->id).'"  title="ubah"><i class="iconsweets-create"></i></a> | ';
			echo '<a href="'.base_url('admin/berita/hapus/'.$value_data_kelas->id).'"  title="hapus"><i class="iconsweets-trashcan"></i></a>';
			echo '</center></td>';
            echo '</tr>';
        }
        ?>
    </tbody>
</table>